package com.example.enumexample;

public enum DirectionTemplate {

	EAST(0) {
		@Override
		public void shout() {
			System.out.println("Journey to EAST");
		}
	}, 
	WEST(180) {
		@Override
		public void shout() {
			System.out.println("ourney to WEST");
		}
	}, 
	NORTH(90) {
		@Override
		public void shout() {
			System.out.println("ourney to NORTH");
		}
	}, 
	SOUTH(270){
		@Override
		public void shout() {
			System.out.println("ourney to SOUTH");
		}
	};
	
	private Integer angle;
	
	private DirectionTemplate(final Integer angle) {
		this.angle = angle;
	}
	
	public Integer getAngle() {
		return angle;
	}
	
	public abstract void shout();
}
